package com.example.yimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yimai.dto.PageResponseDTO;
import com.example.yimai.entity.News;

import java.util.List;

public interface NewsService extends IService<News> {

    public PageResponseDTO<News> queryNews(String keyword, int pageNum, int pageSize);

    public String addNews(String title, String content);

    public String deleteNews(Integer id);

    public News updateNews(News news);

    public List<News> getLatestNews();

}
